-- GENERATED SPELL FOR [Servitor Shade] --


function spell0_24485(pUnit, Event) --@Blink Strike,n/a--
pUnit:FullCastSpellOnTarget(49961,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24485', 672, 1)
end

function spell1_24485(pUnit, Event) --@Shadow Shock,n/a--
pUnit:FullCastSpellOnTarget(16583,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24485', 602, 1)
end

function Sorts_24485(pUnit, Event)
local choix_sorts_24485 = math.random(0, 1)
if choix_sorts_24485 == 0 then
pUnit:RegisterEvent('spell0_24485', 1, 1)
end
if choix_sorts_24485 == 1 then
pUnit:RegisterEvent('spell1_24485', 1, 1)
end
end

function mob24485_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24485', math.random(1500, 3000), 1)
end

function mob24485_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24485_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24485_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24485, 1, 'mob24485_Action')
RegisterUnitEvent(24485, 2, 'mob24485_Leave')
RegisterUnitEvent(24485, 3, 'mob24485_Kill')
RegisterUnitEvent(24485, 4, 'mob24485_Die')
